<?php
header("content-type:text/html;charset=utf-8");
include_once "../lib/databases.php";
include_once "../lib/function.php";

//返回当前用户的活动记录
$log = $db->getLog($_SESSION['user_info']['id']);
if($log){
    echo $fun->success("获取活动成功",$log);
}else{
    echo $fun->error("获取活动失败");
}